package edu.gatech.cc.liam.geometry.linear.programming;

import org.gnu.glpk.GLPKConstants;

public class BasicSolution {
	public int[] rowStats;
	public int[] colStats;
	public boolean isPrimal;
	
	public int getNumBasis(){
		int bCount = 0;
		for(int i=0; i<rowStats.length; i++) {
			if(rowStats[i] == GLPKConstants.GLP_BS)
				bCount++;
		}
		for(int i=0; i<colStats.length; i++) {
			if(colStats[i] == GLPKConstants.GLP_BS)
				bCount++;
		}
		return bCount;
	}
}